package org.example.mytest.control;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.example.mytest.entity.Myclass;
import org.example.mytest.entity.User;
import org.example.mytest.entity.Userone;
import org.example.mytest.mapper.UserMapper;
import org.example.mytest.mapper.UserMenyiMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
public class FindMenyiControler
{
    @Autowired
    UserMenyiMapper userMenyiMapper;
    @GetMapping("menyi/query")
    public List query2() {
        List<Userone> list = userMenyiMapper.getuserandclass();
        return list;
    }
        @GetMapping("menyi/query1")
        public List query3() {
            List<Userone> list = userMenyiMapper.getuserandscore();
            return list;

        }
    @GetMapping("menyi/query2")
    public List query4() {
        List<Userone> list = userMenyiMapper.getuserandscoreandmyclass();
        return list;
    }
    }


